from api.ihrm_login_api import IhrmLogin


class HeaderToken():
    @classmethod
    def get_headertoken(cls):
        login_data={"mobile":"13800000002","password":'123456'}
        res=IhrmLogin.login(login_data)
        token='Bearer '+res.json().get('data')
        header={'Authorization':token}
        return header


print(HeaderToken.get_headertoken())